package com.example.web.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import java.util.Date;

/**
 * @program: swagger2-demo
 * @description: 用户实体类
 * @author: ChenZhiXiang
 * @create: 2019-07-21 22:43
 **/
@Data
@AllArgsConstructor
@ApiModel(value = "User",description = "用户实体类")
public class User {

    @ApiModelProperty(notes = "自增列id",dataType = "int")
    private Integer id;
    @ApiModelProperty(notes = "用户名",dataType = "String")
    private String username;
    @ApiModelProperty(notes = "是否管理员",dataType = "boolean")
    private Boolean isAdmin;
    @ApiModelProperty(notes = "创建时间",dataType = "Date")
    private Date createTime;

}
